<%--
  Created by IntelliJ IDEA.
  User: 62585
  Date: 2021/4/7
  Time: 12:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>上传文件</title>
</head>
<body>
<h1>上传一个文件</h1><br/>
<form action="${pageContext.request.contextPath}/upload" method="post" enctype="multipart/form-data">
    上传文件：<input type="file" name="uploadFile"><br/>
    <input type="submit" value="提交"><br/>
</form>
<h1>上传多个文件</h1><br/>
<form action="${pageContext.request.contextPath}/upload2" method="post" enctype="multipart/form-data">
    <label>名字：
        <input type="text" name="name">
    </label><br/>
    上传文件1：<input type="file" name="uploadFiles"><br/>
    上传文件2：<input type="file" name="uploadFiles"><br/>
    上传文件3：<input type="file" name="uploadFiles"><br/>
    上传文件4：<input type="file" name="uploadFiles"><br/>
    <input type="submit" value="提交"><br/>
</form>
</body>
</html>